package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.qianniu.napi.common.config.Constants;
import org.bytedeco.javacpp.presets.opencv_core;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author chenxuebin
 * @since 2018-06-24
 */
@TableName("t_order")
public class Order extends Model<Order> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long pid;

    /**
     * 使用的优惠券编号
     */
    @TableField("coupon_id")
    private Long couponId;
    @TableField("coupontpl_id")
    private Long coupontplId;

    private Long gid;

    private Long skuid;

    /**
     * 运单号
     */
    @TableField("shipper_code")
    private String shipperCode;

    /**
     * 取货方式
     */
    @TableField("shipper_method")
    private Integer shipperMethod;

    /**
     * 货运公司
     */
    @TableField("shipper_name")
    private String shipperName;

    private String yundanno;

    /**
     * 商家ID，实体店ID
     */
    private Long sid;
    private String sname;
    private Long leagueid;
    private Long supplyid;

    /**
     * 商家ID，实体店ID
     */
    @TableField("is_refund")
    private Integer isRefund;
    private Date refundtime;

    /**
     * 支付方式@1：货到付款；2：微信支付；3：余额支付
     */
    @TableField("pay_type")
    private Integer payType;

    /**
     * 是否评论
     */
    @TableField("is_comment")
    private Integer isComment;

    private String fhday;
    private Integer fhstate;
    private Integer state;
    private String yyday;
    private String yytime;
    private String okday;

    private Integer createday;

    private Date jdtime;
    private Date fhtime;
    private Date paytime;

    private BigDecimal fanqian;
    private BigDecimal fanjifen;
    private BigDecimal fanbi;

    private Integer bie;
    private BigDecimal bikou;

    /**
     * 收货地址
     */
    private String address;
    private Long addrid;

    @TableField("order_no")
    private String orderNo;

    private String shortno;

    private String tradecode;

    @TableField("order_type")
    private Integer orderType;

    private String pic;

    /**
     * 多少分钟未支付自动关闭本订单，传0不自动关闭订单
     */
    private Integer expire;

    private String prepayid;

    /**
     * 运费
     */
    private BigDecimal yunfei;
    /**
     * 订单总价=运费+商品总价
     */
    private BigDecimal total;

    /**
     * 会员打折抵扣
     */
    @TableField("member_discount")
    private BigDecimal memberDiscount;

    /**
     * 会员打折抵扣
     */
//    @TableField("ecard_discount")
//    private BigDecimal ecardDiscunt;

    /**
     * 积分抵扣
     */
    @TableField("jifen_discount")
    private BigDecimal jifenDiscount;

    /**
     * 优惠券抵扣
     */
    @TableField("coupon_discount")
    private BigDecimal couponDiscount;

    /**
     * 活动优惠
     */
    @TableField("activity_discount")
    private BigDecimal activityDiscount;

    // ================ 实付 余额 抵扣 ==============
    // 总价 300=(券200+余额100=券200+会员余额49+赠送余额50<营销金额>）+实付1
    //af.setRealpay(oaf.getRealpay());//1
    //af.setAmount(oaf.getAmount());//49=deduction
    //af.setDikou(oaf.getDikou());//200+50=250
    //af.mamount()=50
    //order.getDiscount()=200=discount
    /**
     * 优惠折扣=优惠券折扣+积分抵扣+会员折扣+营销活动折扣
     */
    private BigDecimal discount;

    /**
     * 会员余额抵扣
     */
    private BigDecimal deduction;

    /**
     * 实际付款金额
     */
    private BigDecimal realpay;

    private BigDecimal fxe1;
    private BigDecimal fxe2;
    private BigDecimal fxe3;
    private BigDecimal fxe4;
    private BigDecimal fxe5;
    private BigDecimal fxe6;
    private BigDecimal fxe7;
    private BigDecimal sharefan;
    private BigDecimal lmfan;
    private BigDecimal ptfan;
    private Integer fxmode;

    private Long fanuid;
    private String ori;

    /**
     * 商品总价（不包含运费的价格）
     */
    private BigDecimal prices;

    private BigDecimal saleprice;
    private BigDecimal price;
    private BigDecimal minprice;

    @TableField(exist = false)
    private List<OrderGoods> list;

    /**
     * 是否需要物流信息
     */
    @TableField("is_need_logistics")
    private Integer isNeedLogistics;

    @TableField("goods_name")
    private String goodsName;

    @TableField("service_code")
    private String serviceCode;

    @TableField("refund_no")
    private String refundNo;

    @TableField("share_bonus_type")
    private Integer shareBonusType;

    /**
     * 订单状态@0：已关闭；1：待支付；2：待发货；3：待收货；4：待评价；5： 已评价；6：已完成
     */
    private Integer status;

    private BigDecimal jifen;

    /**
     * 产品类型@1:实物产品；2:虚拟产品；3:到店服务；4:上门服务
     */
    private Integer gtype;
    private Integer xftype;

    //做头士扩展值：首次约同一个理发师下单0：非首次1
    private String extval1;
    private String extval2;

    private Integer type;
    private Integer xing;

    @TableField(exist = false)
    private List<ChoujiangLog> jps;

    @TableField(exist = false)
    private BigDecimal xingping;

    private Long mid;
    private Long mpid;

    private Long uid;
    private Long jduid;
    private Long zduid;

    @TableField(exist = false)
    private String jdname;
    @TableField(exist = false)
    private String duty;

    @TableField(exist = false)
    private Integer yuyues;
    @TableField(exist = false)
    private Integer okcout;

    /**
     * 物流跟踪
     */
    private String traces;

    @TableField(exist = false)
    private String goodsJsonStr;

    @TableField(exist = false)
    private String avatarPic;

    /**
     * 拼团状态
     */
    @TableField(exist = false)
    private Integer pstatus;
    @TableField(exist = false)
    private String statusStr;
    @TableField(exist = false)
    private Integer isowner;
    @TableField(exist = false)
    private Long puid;
    @TableField(exist = false)
    private Long ptoid;

    @TableField(exist = false)
    private String timeleft;

    @TableField(exist = false)
    private OrderRefund orderRefund;

    @TableField(exist = false)
    private List<OrderGoods> detailList;

    /**
     * 商品数量
     */
    @TableField("goods_number")
    private Integer goodsNumber;
    /**
     * 下单备注信息
     */
    private String remark;
    private String spec;

    @TableField("transaction_id")
    private String transactionId;

    @TableField("is_deleted")
    private Integer isDeleted;

    @TableField("fantime_type")
    private Integer fantimeType;

    private String linkman;
    private String phone;
    private String headimg;

    /**
     * 预约时间（已废弃）
     */
//    @TableField("reserving_time")
//    private Date reservingTime;
    private Date confirmtime;
    private Date endtime;
    private Date hxtime;

    private Date createtime;
    private Date modifytime;
    private Long modifier;

    @TableField(exist = false)
    private String carda;
    @TableField(exist = false)
    private String cardb;
    @TableField(exist = false)
    private String weixin;
    @TableField(exist = false)
    private List<ToupiaoLog> tpusers;

    @TableField(exist = false)
    private Integer lastpiao;
    @TableField(exist = false)
    private Integer paiming;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGid() {
        return gid;
    }

    public void setGid(Long gid) {
        this.gid = gid;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public Long getCoupontplId() {
        return coupontplId;
    }

    public void setCoupontplId(Long coupontplId) {
        this.coupontplId = coupontplId;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public String getShipperCode() {
        return shipperCode;
    }

    public void setShipperCode(String shipperCode) {
        this.shipperCode = shipperCode;
    }

    public String getShipperName() {
        return shipperName;
    }

    public void setShipperName(String shipperName) {
        this.shipperName = shipperName;
    }

    public Integer getGtype() {
        return gtype;
    }

    public void setGtype(Integer gtype) {
        this.gtype = gtype;
    }

    public String getRefundNo() {
        return refundNo;
    }

    public void setRefundNo(String refundNo) {
        this.refundNo = refundNo;
    }

    public String getServiceCode() {
        return serviceCode;
    }

    public void setServiceCode(String serviceCode) {
        this.serviceCode = serviceCode;
    }

    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getPrepayid() {
        return prepayid;
    }

    public void setPrepayid(String prepayid) {
        this.prepayid = prepayid;
    }

    public Integer getExpire() {
        return expire;
    }

    public void setExpire(Integer expire) {
        this.expire = expire;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public BigDecimal getJifen() {
        return jifen;
    }

    public void setJifen(BigDecimal jifen) {
        this.jifen = jifen;
    }

    public List<OrderGoods> getList() {
        return list;
    }

    public void setList(List<OrderGoods> list) {
        this.list = list;
    }

    public BigDecimal getActivityDiscount() {
        return activityDiscount;
    }

    public void setActivityDiscount(BigDecimal activityDiscount) {
        this.activityDiscount = activityDiscount;
    }

    public BigDecimal getMemberDiscount() {
        return memberDiscount;
    }

    public void setMemberDiscount(BigDecimal memberDiscount) {
        this.memberDiscount = memberDiscount;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public BigDecimal getJifenDiscount() {
        return jifenDiscount;
    }

    public void setJifenDiscount(BigDecimal jifenDiscount) {
        this.jifenDiscount = jifenDiscount;
    }

    public BigDecimal getCouponDiscount() {
        return couponDiscount;
    }

    public void setCouponDiscount(BigDecimal couponDiscount) {
        this.couponDiscount = couponDiscount;
    }

    public BigDecimal getDeduction() {
        return deduction;
    }

    public void setDeduction(BigDecimal deduction) {
        this.deduction = deduction;
    }

    public BigDecimal getRealpay() {
        return realpay;
    }

    public void setRealpay(BigDecimal realpay) {
        this.realpay = realpay;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public Integer getPstatus() {
        return pstatus;
    }

    public void setPstatus(Integer pstatus) {
        this.pstatus = pstatus;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getIsNeedLogistics() {
        return isNeedLogistics;
    }

    public void setIsNeedLogistics(Integer isNeedLogistics) {
        this.isNeedLogistics = isNeedLogistics;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsComment() {
        return isComment;
    }

    public void setIsComment(Integer isComment) {
        this.isComment = isComment;
    }

    public String getTraces() {
        return traces;
    }

    public void setTraces(String traces) {
        this.traces = traces;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getModifytime() {
        return modifytime;
    }

    public void setModifytime(Date modifytime) {
        this.modifytime = modifytime;
    }

    public Long getModifier() {
        return modifier;
    }

    public void setModifier(Long modifier) {
        this.modifier = modifier;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getGoodsJsonStr() {
        return goodsJsonStr;
    }

    public void setGoodsJsonStr(String goodsJsonStr) {
        this.goodsJsonStr = goodsJsonStr;
    }

    public Long getMid() {
        return mid;
    }

    public void setMid(Long mid) {
        this.mid = mid;
    }

    public Long getMpid() {
        return mpid;
    }

    public void setMpid(Long mpid) {
        this.mpid = mpid;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public BigDecimal getYunfei() {
        return yunfei;
    }

    public void setYunfei(BigDecimal yunfei) {
        this.yunfei = yunfei;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public BigDecimal getPrices() {
        return prices;
    }

    public void setPrices(BigDecimal prices) {
        this.prices = prices;
    }

    public BigDecimal getSaleprice() {
        return saleprice;
    }

    public void setSaleprice(BigDecimal saleprice) {
        this.saleprice = saleprice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public List<OrderGoods> getDetailList() {
        return detailList;
    }

    public void setDetailList(List<OrderGoods> detailList) {
        this.detailList = detailList;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getFhstate() {
        return fhstate;
    }

    public void setFhstate(Integer fhstate) {
        this.fhstate = fhstate;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getIsRefund() {
        return isRefund;
    }

    public void setIsRefund(Integer isRefund) {
        this.isRefund = isRefund;
    }

    public OrderRefund getOrderRefund() {
        return orderRefund;
    }

    public void setOrderRefund(OrderRefund orderRefund) {
        this.orderRefund = orderRefund;
    }

    public Long getSkuid() {
        return skuid;
    }

    public void setSkuid(Long skuid) {
        this.skuid = skuid;
    }

    public Long getSid() {
        return sid;
    }

    public void setSid(Long sid) {
        this.sid = sid;
    }

    public Integer getShipperMethod() {
        return shipperMethod;
    }

    public void setShipperMethod(Integer shipperMethod) {
        this.shipperMethod = shipperMethod;
    }

    public BigDecimal getFanqian() {
        return fanqian;
    }

    public void setFanqian(BigDecimal fanqian) {
        this.fanqian = fanqian;
    }

    public BigDecimal getFanjifen() {
        return fanjifen;
    }

    public void setFanjifen(BigDecimal fanjifen) {
        this.fanjifen = fanjifen;
    }

    public BigDecimal getFanbi() {
        return fanbi;
    }

    public void setFanbi(BigDecimal fanbi) {
        this.fanbi = fanbi;
    }

    public BigDecimal getFxe1() {
        return fxe1;
    }

    public void setFxe1(BigDecimal fxe1) {
        this.fxe1 = fxe1;
    }

    public BigDecimal getFxe2() {
        return fxe2;
    }

    public void setFxe2(BigDecimal fxe2) {
        this.fxe2 = fxe2;
    }

    public BigDecimal getFxe3() {
        return fxe3;
    }

    public void setFxe3(BigDecimal fxe3) {
        this.fxe3 = fxe3;
    }

    public BigDecimal getFxe4() {
        return fxe4;
    }

    public void setFxe4(BigDecimal fxe4) {
        this.fxe4 = fxe4;
    }

    public BigDecimal getFxe5() {
        return fxe5;
    }

    public void setFxe5(BigDecimal fxe5) {
        this.fxe5 = fxe5;
    }

    public BigDecimal getFxe6() {
        return fxe6;
    }

    public void setFxe6(BigDecimal fxe6) {
        this.fxe6 = fxe6;
    }

    public BigDecimal getFxe7() {
        return fxe7;
    }

    public void setFxe7(BigDecimal fxe7) {
        this.fxe7 = fxe7;
    }

    public BigDecimal getSharefan() {
        return sharefan;
    }

    public void setSharefan(BigDecimal sharefan) {
        this.sharefan = sharefan;
    }

    public Integer getFantimeType() {
        return fantimeType;
    }

    public void setFantimeType(Integer fantimeType) {
        this.fantimeType = fantimeType;
    }

    public String getYytime() {
        return yytime;
    }

    public void setYytime(String yytime) {
        this.yytime = yytime;
    }

    public Integer getBie() {
        return bie;
    }

    public void setBie(Integer bie) {
        this.bie = bie;
    }

    public BigDecimal getBikou() {
        return bikou;
    }

    public void setBikou(BigDecimal bikou) {
        this.bikou = bikou;
    }

    public Integer getIsowner() {
        return isowner;
    }

    public void setIsowner(Integer isowner) {
        this.isowner = isowner;
    }

    public Long getPuid() {
        return puid;
    }

    public void setPuid(Long puid) {
        this.puid = puid;
    }

    public Long getPtoid() {
        return ptoid;
    }

    public void setPtoid(Long ptoid) {
        this.ptoid = ptoid;
    }

    public String getTradecode() {
        return tradecode;
    }

    public void setTradecode(String tradecode) {
        this.tradecode = tradecode;
    }

    public Date getConfirmtime() {
        return confirmtime;
    }

    public void setConfirmtime(Date confirmtime) {
        this.confirmtime = confirmtime;
    }

    public Long getAddrid() {
        return addrid;
    }

    public void setAddrid(Long addrid) {
        this.addrid = addrid;
    }

    public BigDecimal getMinprice() {
        return minprice;
    }

    public void setMinprice(BigDecimal minprice) {
        this.minprice = minprice;
    }

    public Long getFanuid() {
        return fanuid;
    }

    public void setFanuid(Long fanuid) {
        this.fanuid = fanuid;
    }

    public String getOri() {
        return ori;
    }

    public void setOri(String ori) {
        this.ori = ori;
    }

    public String getAvatarPic() {
        return avatarPic;
    }

    public void setAvatarPic(String avatarPic) {
        this.avatarPic = avatarPic;
    }

    public Integer getXftype() {
        return xftype;
    }

    public void setXftype(Integer xftype) {
        this.xftype = xftype;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

    public Long getJduid() {
        return jduid;
    }

    public void setJduid(Long jduid) {
        this.jduid = jduid;
    }

    public Date getRefundtime() {
        return refundtime;
    }

    public void setRefundtime(Date refundtime) {
        this.refundtime = refundtime;
    }

    public String getCarda() {
        return carda;
    }

    public void setCarda(String carda) {
        this.carda = carda;
    }

    public String getCardb() {
        return cardb;
    }

    public void setCardb(String cardb) {
        this.cardb = cardb;
    }

    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin;
    }

    public Long getLeagueid() {
        return leagueid;
    }

    public void setLeagueid(Long leagueid) {
        this.leagueid = leagueid;
    }

    public String getExtval1() {
        return extval1;
    }

    public void setExtval1(String extval1) {
        this.extval1 = extval1;
    }

    public String getExtval2() {
        return extval2;
    }

    public void setExtval2(String extval2) {
        this.extval2 = extval2;
    }

    public List<ToupiaoLog> getTpusers() {
        return tpusers;
    }

    public void setTpusers(List<ToupiaoLog> tpusers) {
        this.tpusers = tpusers;
    }

    public Integer getLastpiao() {
        return lastpiao;
    }

    public void setLastpiao(Integer lastpiao) {
        this.lastpiao = lastpiao;
    }

    public Integer getPaiming() {
        return paiming;
    }

    public void setPaiming(Integer paiming) {
        this.paiming = paiming;
    }

    public Integer getXing() {
        return xing;
    }

    public void setXing(Integer xing) {
        this.xing = xing;
    }

    public BigDecimal getXingping() {
        return xingping;
    }

    public void setXingping(BigDecimal xingping) {
        this.xingping = xingping;
    }

    public BigDecimal getLmfan() {
        return lmfan;
    }

    public void setLmfan(BigDecimal lmfan) {
        this.lmfan = lmfan;
    }

    public BigDecimal getPtfan() {
        return ptfan;
    }

    public void setPtfan(BigDecimal ptfan) {
        this.ptfan = ptfan;
    }

    public Integer getFxmode() {
        return fxmode;
    }

    public void setFxmode(Integer fxmode) {
        this.fxmode = fxmode;
    }

    public String getShortno() {
        return shortno;
    }

    public void setShortno(String shortno) {
        this.shortno = shortno;
    }

    public Date getJdtime() {
        return jdtime;
    }

    public void setJdtime(Date jdtime) {
        this.jdtime = jdtime;
    }

    public Date getFhtime() {
        return fhtime;
    }

    public void setFhtime(Date fhtime) {
        this.fhtime = fhtime;
    }

    public Date getPaytime() {
        return paytime;
    }

    public void setPaytime(Date paytime) {
        this.paytime = paytime;
    }

    public String getYundanno() {
        return yundanno;
    }

    public void setYundanno(String yundanno) {
        this.yundanno = yundanno;
    }

    public Integer getShareBonusType() {
        return shareBonusType;
    }

    public void setShareBonusType(Integer shareBonusType) {
        this.shareBonusType = shareBonusType;
    }

    public List<ChoujiangLog> getJps() {
        return jps;
    }

    public void setJps(List<ChoujiangLog> jps) {
        this.jps = jps;
    }

    public Integer getCreateday() {
        return createday;
    }

    public void setCreateday(Integer createday) {
        this.createday = createday;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public Long getSupplyid() {
        return supplyid;
    }

    public void setSupplyid(Long supplyid) {
        this.supplyid = supplyid;
    }

    public String getYyday() {
        return yyday;
    }

    public void setYyday(String yyday) {
        this.yyday = yyday;
    }

    public String getJdname() {
        return jdname;
    }

    public void setJdname(String jdname) {
        this.jdname = jdname;
    }

    public String getDuty() {
        return duty;
    }

    public void setDuty(String duty) {
        this.duty = duty;
    }

    public String getFhday() {
        return fhday;
    }

    public void setFhday(String fhday) {
        this.fhday = fhday;
    }

    public String getOkday() {
        return okday;
    }

    public void setOkday(String okday) {
        this.okday = okday;
    }

    public Integer getYuyues() {
        return yuyues;
    }

    public void setYuyues(Integer yuyues) {
        this.yuyues = yuyues;
    }

    public Integer getOkcout() {
        return okcout;
    }

    public void setOkcout(Integer okcout) {
        this.okcout = okcout;
    }

    public Long getZduid() {
        return zduid;
    }

    public void setZduid(Long zduid) {
        this.zduid = zduid;
    }

    public String getStatusStr() {
        return statusStr;
    }

    public void setStatusStr(String statusStr) {
        this.statusStr = statusStr;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getTimeleft() {
        return timeleft;
    }

    public void setTimeleft(String timeleft) {
        this.timeleft = timeleft;
    }

    public Date getHxtime() {
        return hxtime;
    }

    public void setHxtime(Date hxtime) {
        this.hxtime = hxtime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", couponId=" + couponId +
                ", shipperCode=" + shipperCode +
                ", shipperName=" + shipperName +
                ", payType=" + payType +
                ", expire=" + expire +
                ", isNeedLogistics=" + isNeedLogistics +
                ", status=" + status +
                ", traces=" + traces +
                ", goodsNumber=" + goodsNumber +
                ", remark=" + remark +
                ", createtime=" + createtime +
                ", modifytime=" + modifytime +
                "}";
    }
}
